//
//  jishiBtn.m
//  诗韵
//
//  Created by Song on 2018/3/11.
//  Copyright © 2018年 Song. All rights reserved.
//

#import "jishiBtn.h"

@implementation jishiBtn


-(void)awakeFromNib {
    [super awakeFromNib];
    
    // 文字居中
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
//    self.titleLabel.backgroundColor = [UIColor redColor];
//    self.imageView.backgroundColor = [UIColor blueColor];
}

-(void)layoutSubviews {
    [super layoutSubviews];

    self.imageView.gsy_centerX = self.gsy_width / 2;
    self.imageView.gsy_y = 0;
//    self.imageView.gsy_height = self.gsy_width * 0.4;
//    self.imageView.gsy_width = self.gsy_width * 0.4;
//
    self.titleLabel.gsy_centerX = self.gsy_width /2;
//    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.gsy_y = self.imageView.gsy_height;
//    self.titleLabel.gsy_width = self.gsy_width;

}

@end
